package com.ylp.common.response;

import io.swagger.v3.oas.annotations.media.Schema;

import java.util.List;

@Schema(description = "分页查询数据")
public class PageResult<T> {
    @Schema(description = "分页数据")
    private List<T> list;
    @Schema(description = "数据总条数")
    private long total;

    public PageResult(List<T> data, long total) {
        this.list = data;
        this.total = total;
    }
    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }
}
